<?php
$this->sendDebugMessage("selectRoom model start");

$rid = $data->para->roomID;
$response = new Response();
$this->userCenter->roomList[$rid]->enterRoom($ip);

//先向该房中的用户通知有新用户进入
$response->event = "SE_ENTER_ROOM_UPDATE";
$response->body = $this->userCenter->userList[$ip];
$this->broadcastGroup($response,$this->userCenter->roomList[$rid]->userList,array($ip));

//向当前用户发送房间信息
$response->event = "SE_ENTER_ROOM_NEW";
include("getRoomInfo.php");

//向还没有选择服器的玩家发送新的服务器信息



$this->sendDebugMessage("selectRoom model end");
?>